var OSS = require('ali-oss')
export function client() {
  const client = new OSS({
    region : 'oss-cn-beijing',
	  accessKeyId : 'LTAI5tCuUDnbpnxgeRx8BtZr',
	  accessKeySecret : 'DS8tJYhOhrj67fBXjI0dDFZK0SiEhk',
	  bucket : 'hmh-app'
  })
  return client
}
export const getFileNameUUID = () => {
  function rx() {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
  }
  return `${+new Date()}_${rx()}${rx()}`
}